import {httpRequest} from '@/request/https'

export default {
    /**
     * 合同范本-优秀案例分页查询
     * */
    postCasePage: params => httpRequest({url: '/con/excellentCases/page', method: 'post', params}),
    /**
     * 新增合同范本-优秀案例
     * */
    postAddCase: params => httpRequest({url: '/con/excellentCases', method: 'post', params}),
    /**
     * 删除合同范本-优秀案例
     * */
    deleteCase: params => httpRequest({url: `/con/excellentCases/${params}`, method: 'delete'}),
    /**
     * 合同范本-合同模板分页查询
     * */
    postTemplatePage: params => httpRequest({url: '/con/conTemplate/page', method: 'post', params}),
    /**
     * 新增合同范本-合同模板
     * */
    postAddTemplate: params => httpRequest({url: '/con/conTemplate', method: 'post', params}),
    /**
     * 删除合同范本-合同模板
     * */
    deleteTemplate: params => httpRequest({url: `/con/conTemplate/${params}`, method: 'delete'}),
    /**
     * 修改合同范本-合同模板
     * */
    putTemplate: params => httpRequest({url: `/con/conTemplate`, method: 'put', params}),
    /**
     * 合同范本-合同模板详情
     * */
    getTemplateInfo: params => httpRequest({url: `/con/conTemplate`, method: 'get', params}),
    /**
     * 合同范本-合同模板所有条款内容
     * */
    getTemplateClauseTypes: params => httpRequest({url: `/con/conTemplate/templateClauseTypes`, method: 'get', params}),
    /**
     * 合同范本-合同模板保存条款
     * */
    postTemplateClauseTypes: params => httpRequest({url: `/con/conTemplate/saveClause`, method: 'post', params})
}
